Skip to content

feat(cli): add engram delete command to remove observations#434

Merged
Alan-TheGentleman merged 1 commit into
mainfrom
feat/cli-delete-observation
May 27, 2026
Merged

feat(cli): add engram delete command to remove observations#434
Alan-TheGentleman merged 1 commit into
mainfrom
feat/cli-delete-observation

Conversation

@Alan-TheGentleman
Copy link
Copy Markdown
Collaborator

Summary

  • Adds engram delete <observation_id> [--hard] CLI command. The store and HTTP layers already had delete support; this fills the missing CLI surface.
  • Soft-delete (default) marks deleted_at; --hard permanently removes the row.
  • Reuses the existing store.DeleteObservation() API and follows the injectable-function-var pattern used by the other CLI commands.

Test plan

  • TestCmdDeleteSoftDeleteSuccess, TestCmdDeleteHardDeleteSuccess, TestCmdDeleteNonExistentID, TestCmdDeleteMissingIDArg, TestCmdDeleteInvalidIDArg, TestCmdDeleteInUsage
  • go test ./... && go vet ./... && go build ./... clean

Closes #209

Closes #209. Adds `engram delete <id> [--hard]` reusing the existing
store.DeleteObservation() API; soft-delete is the default, --hard
permanently removes the row.
Copilot AI review requested due to automatic review settings May 27, 2026 15:28
@Alan-TheGentleman Alan-TheGentleman added the type:feature New feature label May 27, 2026
@Alan-TheGentleman Alan-TheGentleman merged commit 8dccc52 into main May 27, 2026
8 of 9 checks passed
@Alan-TheGentleman Alan-TheGentleman deleted the feat/cli-delete-observation branch May 27, 2026 15:30
@Alan-TheGentleman Alan-TheGentleman review requested due to automatic review settings May 27, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(cli): add engram delete command to remove observations

1 participant